//
//  IAStudent.m
//  VoiceClass
//
//  Created by caoxiaobo on 2018/1/1.
//  Copyright © 2018年 YRX. All rights reserved.
//

#import "IAStudent.h"

@implementation IAStudent

+ (instancetype)studentWithDictionary:(NSDictionary *)dictionary {
    return [[self alloc] initWithDictionary:dictionary];
}

- (instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (!self) {
        return nil;
    }
    
    _stuID = dictionary[@"studentID"];
    _name = dictionary[@"studentName"];
    _grade = dictionary[@"studentGrade"];
    _avatar = dictionary[@"avatar"];

    return self;
}

@end
